<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of actions
 *
 * @author Administrator
 */
class actions {
    //put your code here
 public function executeLogin()
{
  if ($this->getRequestParameter('login') == 'admin'
                    && $this->getRequestParameter('password') == 'password')
  {
    $this->getUser()->setAuthenticated(true);

    return $this->redirect('/articulo');
  }
  else
  {
    $this->getRequest()->setError('login', 'incorrect entry');

    return $this->forward('seguridad', 'index');
  }
}

public function executeIndex()
{
}
}
?>
